import request from '@/utils/request'

// 身份证号码校验
export function validIdNo(query) {
  return request({
    url: '/validate/validIdNo',
    method: 'get',
    params: query
  })
}

// 电话号码校验
export function validPhone(query) {
  return request({
    url: '/validate/validPhone',
    method: 'get',
    params: query
  })
}

// 验证当前登录用户是否分配机构
export function validUserIsInstitution() {
  return request({
    url: '/validate/validUserIsInstitution',
    method: 'get'
  })
}
